package cn.tedu.spring.eg4;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestShopController {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext configApplicationContext = new
                AnnotationConfigApplicationContext("cn.tedu.spring.eg4");
        ShopController shopController = configApplicationContext.getBean(ShopController.class);
        System.out.println("使用阶段");
        configApplicationContext.close();
    }
}
